package com.dries.portal.module.chat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author dries
 * @email samphsanie@gmail.com
 * @date 2020-09-14 14:03:33
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("xx_recent_chat")
public class RecentChat implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 *
	 */
	private String accept;
	/**
	 *
	 */
	private String sender;
	/**
	 * 消息
	 */
	private String msg;
	/**
	 * 类型
	 */
	private Integer type;
	/**
	 * 消息签收 0 未签收 1 已签收
	 */
	private Integer msgSign;
	/**
	 * 状态
	 */
	private Integer status;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 修改时间
	 */
	private Date modifiedTime;

	public RecentChat(String accept, String sender, String msg, Integer type) {
		this.accept = accept;
		this.sender = sender;
		this.msg = msg;
		this.type = type;
	}
}
